import axios from '../assets/config/api'
export class user {
    static async getUser( id: number){
        return await axios({
            url:'/api/openapi/'+id,
            method: 'get'
        });
    }
    static async getUsersList(siteId: number ,limit:number){
        return await axios({
            url:'/api/openapi/siteId/'+siteId+"?limit="+limit,
            method: 'get'
        });
    }
    static async addUser(resultData: any){
        return await axios({
            url:'/api/openapi/addUser',
            method: "post",
            data:resultData
        })
    }
}